From 42f7d0390719fad517fa636619ac1923bb1c75f3 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Sat, 24 Jan 2009 22:22:35 +0000 Subject: [PATCH] =?utf8?q?Bug=20559420=20=E2=80=93=20gtk=5Ficon=5Fview=5Fe?= =?utf8?q?nable=5Fmodel=5Fdrag=5F[source|dest]=20docs=20wrt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2009-01-24 Claudio Saavedra Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs wrt. reorderable property * gtk/gtkiconview.c: Improve docstrings regarding reorderable property. Based on a patch by Björn Lindqvist. svn path=/trunk/; revision=22211 --- ChangeLog | 8 ++++++++ gtk/gtkiconview.c | 14 +++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6851b56911..8c2d414ce1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-01-24 Claudio Saavedra + + Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs + wrt. reorderable property + + * gtk/gtkiconview.c: Improve docstrings regarding reorderable + property. Based on a patch by Björn Lindqvist. + 2009-01-24 Matthias Clasen * gtk/gtktoolbutton.c (gtk_tool_button_activatable_reset): diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index ff7b11153d..f3d7c4f897 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -7009,8 +7009,9 @@ gtk_icon_view_drag_data_received (GtkWidget *widget, * @n_targets: the number of items in @targets * @actions: the bitmask of possible actions for a drag from this * widget - * - * Turns @icon_view into a drag source for automatic DND. + * + * Turns @icon_view into a drag source for automatic DND. Calling this + * method sets #GtkIconView:reorderable to %FALSE. * * Since: 2.8 **/ @@ -7040,8 +7041,9 @@ gtk_icon_view_enable_model_drag_source (GtkIconView *icon_view, * @n_targets: the number of items in @targets * @actions: the bitmask of possible actions for a drag to this * widget - * - * Turns @icon_view into a drop destination for automatic DND. + * + * Turns @icon_view into a drop destination for automatic DND. Calling this + * method sets #GtkIconView:reorderable to %FALSE. * * Since: 2.8 **/ @@ -7366,7 +7368,9 @@ static const GtkTargetEntry item_targets[] = { * #GtkTreeStore and #GtkListStore support these. If @reorderable is %TRUE, then * the user can reorder the model by dragging and dropping rows. The * developer can listen to these changes by connecting to the model's - * row_inserted and row_deleted signals. + * row_inserted and row_deleted signals. The reordering is implemented by setting up + * the icon view as a drag source and destination. Therefore, drag and + * drop can not be used in a reorderable view for any other purpose. * * This function does not give you any degree of control over the order -- any * reordering is allowed. If more control is needed, you should probably -- 2.30.2